from rest_framework.routers import SimpleRouter

from users.views import UserView

# 获取路由对象
router = SimpleRouter()
# 注册资源
router.register('auth', UserView)
# 生成地址
# /api/user/auth/  GET POST
# /api/user/auth/id/ PUT PATCH DELETE

urlpatterns = [
    
]
# 获取地址，交给urlpatterns，django才好解析地址
urlpatterns += router.urls

